package com.unionpay.mpds.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;
import java.util.Map;
import com.unionpay.mpds.util.Pager;
import com.unionpay.mpds.dao.PermitDao;
import com.unionpay.mpds.model.Permit;
import com.unionpay.mpds.service.PermitService;

/**
 * 
 * @description 自动生成 service
 *
 */
@Service
public class PermitServiceImpl extends BaseServiceImpl implements PermitService {
	
	@Autowired
	private PermitDao permitDao;
	
	
	
	
	
	//====================== 基本 C R U D 方法  ===========================
	public Permit get(String id) {
		return permitDao.get(id);
	}
	
	public List<Permit> getAll() {
		return permitDao.findAll();
	}
	
	public List<Permit> findByParam(int size, Map<String, Object> params) {
		return permitDao.findListByParamMap(size, params);
	}
	
	public Pager<Permit> findPager(int pageNo, int pageSize, Map<String, Object> params) {
		return 	permitDao.findByParamMap(pageNo, pageSize, params);
	}
	
	public void save(Permit entity) {
		permitDao.save(entity);
	}
	
	public void update(Permit entity) {
		permitDao.update(entity);
	}
	
	public void delete(String id) {
		permitDao.delete(id);
	}
	
}

